import {useEffect,useState} from 'react';
import Styles from './index.module.less';
import Taro from '@tarojs/taro';
import {Textarea} from '@tarojs/components';

export default function index(props) {

    const [remark,setRemark] = useState("");

    const handleRemarkInput = (e) => {
        let value = e.detail.value
        setRemark(value);
        Taro.setStorageSync("remark",value);
    }

    return (
        <view class={Styles.remark_wrap}>
            <view class={Styles.remark}>
                <Textarea value={remark} class={Styles.textarea} placeholder="请输入你的其他要求（如有）" placeholderClass={Styles.placeholder} onInput={handleRemarkInput}/>
            </view>
        </view>
    )
}